package com.ruoyi.floor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.floor.mapper.HouseFloorMapper;
import com.ruoyi.floor.domain.HouseFloor;
import com.ruoyi.floor.service.IHouseFloorService;

/**
 * 楼层Service业务层处理
 * 
 * @author hct
 * @date 2022-02-11
 */
@Service
public class HouseFloorServiceImpl implements IHouseFloorService 
{
    @Autowired
    private HouseFloorMapper houseFloorMapper;

    /**
     * 查询楼层
     * 
     * @param id 楼层主键
     * @return 楼层
     */
    @Override
    public HouseFloor selectHouseFloorById(Long id)
    {
        return houseFloorMapper.selectHouseFloorById(id);
    }

    /**
     * 查询楼层列表
     * 
     * @param houseFloor 楼层
     * @return 楼层
     */
    @Override
    public List<HouseFloor> selectHouseFloorList(HouseFloor houseFloor)
    {
        return houseFloorMapper.selectHouseFloorList(houseFloor);
    }

    /**
     * 新增楼层
     * 
     * @param houseFloor 楼层
     * @return 结果
     */
    @Override
    public int insertHouseFloor(HouseFloor houseFloor)
    {
        return houseFloorMapper.insertHouseFloor(houseFloor);
    }

    /**
     * 修改楼层
     * 
     * @param houseFloor 楼层
     * @return 结果
     */
    @Override
    public int updateHouseFloor(HouseFloor houseFloor)
    {
        return houseFloorMapper.updateHouseFloor(houseFloor);
    }

    /**
     * 批量删除楼层
     * 
     * @param ids 需要删除的楼层主键
     * @return 结果
     */
    @Override
    public int deleteHouseFloorByIds(Long[] ids)
    {
        return houseFloorMapper.deleteHouseFloorByIds(ids);
    }

    /**
     * 删除楼层信息
     * 
     * @param id 楼层主键
     * @return 结果
     */
    @Override
    public int deleteHouseFloorById(Long id)
    {
        return houseFloorMapper.deleteHouseFloorById(id);
    }
}
